<include file="Public:header" />
<!--主体内容-->
<!--左边-->
<div class="centent_box">
    <include file="Public:left" />
    <!--右边-->
    <div class="centent_right_box">
        <div class="centent_right rightCon">
            <div class="Mtitle">
                <ul>
                    <li  class="on"><span><a href="{:U('Account/opinion')}">意见反馈</a></span></li>
                    <li><span><a href="{:U('Account/opinionList')}">反馈列表</a></span></li>
                </ul>
            </div>

            <div class="itemCon">
                <form action="{:U('Account/opinion')}" id="info_form" method="post">
                <div class="mailBox" style="width: 90%;height:auto;padding: 6px 17px 2px;">
                    <ul class="formList width4">
                        <li class="fhyj">
                            <p><span class="blue">{$user.username}</span> 您好!</p>
                            <p>请留下您的宝贵意见或建议</p>
                            <p>联系方式（必填）</p>
                        </li>
                        <li><label>手机号：</label><input type="text" name="data[phone]" value="{$user.mobile}" class="inputStyle" style="border: 1px solid orange;"></li>
                        <li><label>或邮箱：</label><input type="text" name="data[email]" class="inputStyle" value="{$user.email}" style="border: 1px solid orange;"></li>
                        <li style="height: 111px;"><label>反馈内容：</label>
                            <textarea name="data[info]" style="width: 400px;height: 100px;border: 1px orange solid"></textarea>
                        </li>
                        <li>
                            <label></label>
                            <input type="submit" class="btnMail" style="float: left" value="提交" id="submitBtn">
                            <span style="display: none; max-width: 200px;" class="err" id="epass"></span>
                        </li>
                    </ul>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script src="__S__/js/jquery.validate.js"></script>
<script type="text/javascript">
    $(function(){
        $("#info_form").validate({
            rules: {
                "data[phone]": {
                    required: true,
                    minlength: 6
                },
                "data[info]": {
                    required: true,
                    minlength: 2
                }
            },
            messages: {
                "data[phone]": {
                    required: "请输入联系电话",
                    minlength: "联系电话要输入正确哦"
                },
                "data[info]": {
                    required: "请输入详细内容",
                    minlength: "内容也要2个字符以上吧"
                }
            }
        });
    });
</script>
<include file="Public:footer" />